﻿ 
<Window x:Class="Dashboard._MyDashboard"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        
        Title="MainWindow" WindowStyle="None" ResizeMode="NoResize"
        AllowsTransparency="True" Background="Transparent" ShowInTaskbar="False" WindowStartupLocation="CenterScreen" Opacity="50" mc:Ignorable="d" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
        Height="400" Width="600" Activated="window_Activated" Deactivated="window_Deactivated" Closing="Window_Closing" Loaded="Window_Loaded">
    <Border Margin="10">
        <Border.Effect>
            <DropShadowEffect Color="Black"
                              Direction="270"
                              BlurRadius="10"
                              ShadowDepth="3" />
        </Border.Effect>
        <Grid Background="White">
            <Grid Height="400" Name="grid1" Width="600" Margin="-20,-38,-24,-23"></Grid>
            <DockPanel>
                <DockPanel Name="titleBar"
                           DockPanel.Dock="Top"
                           Height="32"
                           Background="Black">
                    <TextBlock Padding="8" Name="txtblockTitle"
                               VerticalAlignment="Center"
                               Text="Dashboard"
                               Foreground="White"
                               FontWeight="999"
                               FontSize="16" />
                </DockPanel>
                <ContentControl Name="content" Opacity="100"></ContentControl>
            </DockPanel>
             
            <TabControl Height="310" HorizontalAlignment="Left" Margin="6,41,0,0" Name="tabControl1" VerticalAlignment="Top" Width="564" SelectionChanged="tabControl1_SelectionChanged">
                <TabItem Header="Task Board" Name="tabTBoard">
                    <Grid Width="561" Height="300">
                        <Label Content="From" Height="28" HorizontalAlignment="Left" Margin="3,7,0,0" Name="label3" VerticalAlignment="Top" />
                        <Label Content="To" Height="28" HorizontalAlignment="Left" Margin="3,35,0,0" Name="label4" VerticalAlignment="Top" />
                        <TextBox Height="23" HorizontalAlignment="Left" Margin="46,9,0,0" Name="txtFromTime" VerticalAlignment="Top" Width="57" />
                        <TextBox Height="23" HorizontalAlignment="Left" Margin="46,38,0,0" Name="txtToTime" VerticalAlignment="Top" Width="57" />
                        <TextBox Height="52" HorizontalAlignment="Left" Margin="109,9,0,0" Name="txtTaskInfo" VerticalAlignment="Top" Width="443" AcceptsReturn="True" AcceptsTab="True" Background="#FFFFFFEB" AutoWordSelection="True" />
                        <Button Content="_New" Height="23" HorizontalAlignment="Left" Margin="348,74,0,0" Name="btnNew" VerticalAlignment="Top" Width="75" IsDefault="True" Click="btnNew_Click" />
                        <Button Content="_Save" Height="23" HorizontalAlignment="Left" Margin="447,74,0,0" Name="btnSave" VerticalAlignment="Top" Width="75" Click="btnSave_Click" />
                        <DataGrid AutoGenerateColumns="False" Height="160" HorizontalAlignment="Left" Margin="8,109,0,0" Name="dgTaskBoardList" VerticalAlignment="Top" Width="538" RowHeight="20"
                            ItemsSource="{Binding}" CanUserAddRows="False" CanUserSortColumns="true" SelectionChanged="dgTaskBoardList_SelectionChanged" LoadingRow="dgTaskBoardList_LoadingRow" >
                            <DataGrid.Columns>
                                <DataGridTextColumn Header="No" Width="25" Binding="{Binding Path=SrNo}" ></DataGridTextColumn>
                                <DataGridTextColumn Header="From"  Width="50" Binding="{Binding Path=TaskFromDate, StringFormat='hh:mm'}" ></DataGridTextColumn>
                                <DataGridTextColumn Header="To" Width="50" Binding="{Binding Path=TaskToDate, StringFormat='hh:mm'}" ></DataGridTextColumn>
                                <DataGridTextColumn Header="Status" Width="90" Binding="{Binding Path=Status}" ></DataGridTextColumn>
                                <DataGridTextColumn Header="Task" Width="315" Binding="{Binding Path=TaskInfo}" ></DataGridTextColumn>
                            </DataGrid.Columns>
                        </DataGrid>
                        <Label Content="Status" Height="28" HorizontalAlignment="Left" Margin="3,69,0,0" Name="label5" VerticalAlignment="Top" />
                        <ComboBox Height="23" HorizontalAlignment="Left" Margin="46,74,0,0" Name="lstStatus" VerticalAlignment="Top" Width="120" SelectedValue="{Binding Value}">
                            <ComboBoxItem Content="New" IsSelected="True" />
                            <ComboBoxItem Content="Completed" />
                            <ComboBoxItem Content="In-Progress" />
                            <ComboBoxItem Content="Pending" />
                            <ComboBoxItem Content="Cancelled" />
                        </ComboBox>
                        <Button Content="Sum Sync" Height="23" HorizontalAlignment="Left" Margin="252,74,0,0" Name="button1" VerticalAlignment="Top" Width="75" />
                    </Grid>
                </TabItem>
                <TabItem Header="History" Name="tabTHistory">
                    <Grid Width="561" Height="300">

                        
                        <DataGrid AutoGenerateColumns="False" Height="251" HorizontalAlignment="Left" Margin="0,27,0,0"
                                  Name="dgHistory" VerticalAlignment="Top" Width="555" ItemsSource="{Binding}" CanUserAddRows="False" AlternatingRowBackground="#FAFAFA" IsManipulationEnabled="True">
                            <DataGrid.Columns>
                            <DataGridTextColumn Header="#" Width="25" Binding="{Binding Path=SrNo}" ></DataGridTextColumn>

                                <!--<DataGridTextColumn Binding="{Binding Path=TaskFromDate, StringFormat='dd-MMM-yyyy hh:mm'}" >
                                    <DataGridTextColumn.HeaderStyle>
                                        <Style TargetType="{x:Type DataGridColumnHeader}">
                                            <Style.Setters>
                                                <Setter Property="ContentTemplate">
                                                    <Setter.Value>
                                                        <DataTemplate>
                                                            <DatePicker></DatePicker>
                                                        </DataTemplate>
                                                    </Setter.Value>
                                                </Setter>
                                            </Style.Setters>
                                        </Style>
                                    </DataGridTextColumn.HeaderStyle>
                                </DataGridTextColumn>-->

                                <DataGridTextColumn Header="From"  Width="110" Binding="{Binding Path=TaskFromDate, StringFormat='dd-MMM-yyyy hh:mm'}" ></DataGridTextColumn>
                            <DataGridTextColumn Header="To"  Width="110" Binding="{Binding Path=TaskToDate, StringFormat='dd-MMM-yyyy hh:mm'}" ></DataGridTextColumn>
                            <DataGridTextColumn Header="Status" Width="75" Binding="{Binding Path=Status}" ></DataGridTextColumn>
                            <DataGridTextColumn Header="Task" Binding="{Binding Path=TaskInfo}" ></DataGridTextColumn>
                            </DataGrid.Columns>
                        </DataGrid>
                        <DatePicker Height="25" HorizontalAlignment="Left" SelectedDateChanged="dtpichistoryfrom_SelectedDateChanged" Margin="52,1,0,0" Name="dtpichistoryfrom" VerticalAlignment="Top" Width="115" DisplayDate="10/1/2011" Text="From" />
                        <Label Content="From" Height="28" HorizontalAlignment="Left" Margin="9,0,0,0" Name="label7" VerticalAlignment="Top" />
                        <DatePicker Height="25" HorizontalAlignment="Left" SelectedDateChanged="dtpichistoryto_SelectedDateChanged" Margin="221,0,0,0" Name="dtpichistoryto" VerticalAlignment="Top" Width="115" />
                        <Label Content="To" Height="28" HorizontalAlignment="Left" Margin="192,-1,0,0" Name="label8" VerticalAlignment="Top" />
                        <TextBox Height="23" HorizontalAlignment="Left" Margin="354,3,0,0" Name="txtSearchInTaskHistory" VerticalAlignment="Top" Width="191" KeyDown="txtSearchInTaskHistory_KeyDowwn"/>
                    </Grid>
                </TabItem>
                <TabItem Header="To Do's" Name="tabTodos">
                    <Grid Width="561" Height="300">
                        <TextBox Height="269" HorizontalAlignment="Left" Margin="3,2,0,0" Name="txtTodoNotes" VerticalAlignment="Top" Width="542" Background="#FFFFFEF2" AcceptsReturn="True" AcceptsTab="True" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" />
                    </Grid>
                </TabItem>
                <TabItem Header="Reminders" Name="tabReminders">
                    <Grid Width="561" Height="300">
                        <TextBox Height="23" HorizontalAlignment="Left" Margin="5,4,0,0" KeyUp="txtTaskReminder_OnKeyUp" Name="txtTaskReminder" VerticalAlignment="Top" Width="540" />
                        <ListBox Height="197" HorizontalAlignment="Left" Margin="5,75,0,0" Name="lstReminders" VerticalAlignment="Top" Width="540" />
                        <Frame Height="36" HorizontalAlignment="Left" Margin="5,33,0,0" Name="frame1" VerticalAlignment="Top" Width="540" />
                        <CheckBox Content="Integrate with Outlook reminder" IsChecked="True" IsEnabled="False" Height="16" HorizontalAlignment="Left" Margin="15,42,0,0" Name="checkBox1" VerticalAlignment="Top" />
                    </Grid>
                </TabItem>
                <TabItem Header="Smart Library" Name="tabSmartLib">
                    <Grid>
                        <TextBox Height="23" HorizontalAlignment="Left" Margin="7,5,0,0" Name="txtSmartLibKeyword" VerticalAlignment="Top" Width="419" KeyDown="txtSmartLibKeyword_KeyDowwn" />
                        <DataGrid AutoGenerateColumns="False" Height="122" HorizontalAlignment="Left" Margin="7,32,0,0" Name="dgSmartLib" VerticalAlignment="Top" Width="538" 
                                  ItemsSource="{Binding}"  CanUserAddRows="False" AlternatingRowBackground="#FCFFEB" SelectionChanged="dgSmartLib_SelectionChanged" RowHeight="20">
                            <DataGrid.Columns>
                                <DataGridTextColumn Header="ID" Binding="{Binding Path=ID}" Visibility="Hidden" ></DataGridTextColumn>
                                <DataGridTextColumn Header="Keywords"  Width="150" Binding="{Binding Path=Keywords}" ></DataGridTextColumn>
                                <DataGridTextColumn Header="Content" Width="363" Binding="{Binding Path=Content}" ></DataGridTextColumn>
                            </DataGrid.Columns>                                
                        </DataGrid>

                        <RichTextBox Height="89" HorizontalAlignment="Left" Margin="9,182,0,0" Name="rteLibrary" VerticalAlignment="Top" Width="536" />
                        <Button Content="Sa_ve" Height="23" HorizontalAlignment="Left" Margin="432,5,0,0" Name="btnSaveSmartLib" VerticalAlignment="Top" Width="53" Click="btnSaveSmartLib_Click" />
                        <Button Content="_Clear" Height="23" HorizontalAlignment="Right" Margin="0,5,10,0" Name="btnNewLib" VerticalAlignment="Top" Width="53" Click="btnNewLib_Click" />
                        <CheckBox Content="Show Protected Contents" Height="16" HorizontalAlignment="Left" Margin="7,160,0,0" Name="checkBox2" VerticalAlignment="Top" />
                        <CheckBox Content="Public Content" Height="16" HorizontalAlignment="Left" Margin="172,160,0,0" Name="checkBox3" VerticalAlignment="Top" />
                    </Grid>
                </TabItem>
                <TabItem Header="Messaging" Name="tabMessaging">
                    <Grid>
                        <ListBox Height="201" HorizontalAlignment="Left" Margin="7,24,0,0" Name="lstOnlineUsers" VerticalAlignment="Top" Width="120" />
                        <Label Content="Online Users" Height="28" HorizontalAlignment="Left" Margin="7,0,0,0" Name="label6" VerticalAlignment="Top" />
                        <TextBox Height="23" HorizontalAlignment="Left" Margin="136,200,0,0" Name="textBoxEntryField" VerticalAlignment="Top" Width="401" />
                        <TextBox HorizontalAlignment="Left" Margin="134,24,0,84" Name="textBoxChatPane" Width="403" />
                    </Grid>
                </TabItem>
                <TabItem Header="Options" Name="tabOptions">
                    <Grid Width="561" Height="300">
                        <Label Content="Name" Height="28" HorizontalAlignment="Left" Margin="8,14,0,0" Name="label1" VerticalAlignment="Top" />
                        <Label Content="Email" Height="28" HorizontalAlignment="Left" Margin="8,48,0,0" Name="label2" VerticalAlignment="Top" />
                        <TextBox Height="23" HorizontalAlignment="Left" Margin="66,16,0,0" Name="txtYourName" VerticalAlignment="Top" Width="178" />
                        <TextBox Height="23" HorizontalAlignment="Left" Margin="66,50,0,0" Name="txtYourEmailId" VerticalAlignment="Top" Width="178" />
                        <Button Content="S_ave Options" Height="23" HorizontalAlignment="Left" Margin="467,246,0,0" Name="btnSaveSettings" VerticalAlignment="Top" Width="75" Click="btnSaveSettings_Click" />
                        <Calendar Height="170" HorizontalAlignment="Left" Margin="355,8,0,0" SelectedDatesChanged="calOptions_SelectedDatesChanged" Name="calOptions" VerticalAlignment="Top" Width="180" />
                        <Button Content="Send ToDo's to my mail" Height="23" HorizontalAlignment="Left" Margin="66,79,0,0" Name="btnSendMails" VerticalAlignment="Top" Width="178" />
                        <Label Content="Old Password" Height="28" HorizontalAlignment="Left" Margin="2,116,0,0" Name="label9" VerticalAlignment="Top" />
                        <TextBox Height="23" HorizontalAlignment="Left" Margin="87,118,0,0" Name="txtOldPwd" VerticalAlignment="Top" Width="178" />
                        <Label Content="New Password" Height="28" HorizontalAlignment="Left" Margin="2,145,0,0" Name="label10" VerticalAlignment="Top" />
                        <TextBox Height="23" HorizontalAlignment="Left" Margin="87,145,0,0" Name="txtNewPwd" VerticalAlignment="Top" Width="178" />
                        <!--<TextBox Height="23" HorizontalAlignment="Left" Margin="66,155,0,0" Name="txtDBConString" VerticalAlignment="Top" Width="275" IsEnabled="False" />
                        <Label Content="DB" Height="28" HorizontalAlignment="Left" Margin="12,155,0,0" Name="label7" VerticalAlignment="Top" />
                        <Button Content="Validate DB" Height="23" HorizontalAlignment="Left" Margin="68,188,0,0" Name="btnValidateDB" Click="btnValidateDB_Click" VerticalAlignment="Top" Width="75" IsEnabled="False" />
                        <Button Content="Reset DB" Height="23" HorizontalAlignment="Right" Margin="0,188,337,0" Name="button3" VerticalAlignment="Top" Width="75" IsEnabled="False" />-->
                    </Grid>
                </TabItem>
                
            </TabControl>
            <StatusBar Height="23" HorizontalAlignment="Left" Margin="0,356,0,0" Name="statusBar1" VerticalAlignment="Top" Width="580">
                <StatusBarItem Content="" HorizontalAlignment="Left" />
                <StatusBarItem Content="" HorizontalAlignment="Center"></StatusBarItem>
                <StatusBarItem Content="" HorizontalAlignment="Right">
                </StatusBarItem>
                <StatusBarItem Content="0.1 - Alpha" Foreground="Gray" HorizontalAlignment="Right" />
            </StatusBar>
        </Grid>
    </Border>
</Window>
 